LABEL | NN n/a IE 4 DOM 1 | ||
The LABEL object reflects the LABEL element. | |||
HTML Equivalent<LABEL> | |||
Object Model Reference
|
accessKey | NN n/a IE 4 DOM 1 | ||
Read/Write | |||
A single character key that brings focus to the
INPUT element associated with the
LABEL element. The browser and operating system
determine whether the user must press a modifier key (e.g., | |||
Exampledocument.entryForm.firstNameLabel.accessKey = "n" | |||
Value Single alphanumeric (and punctuation) keyboard character. | |||
|
dataFld | NN n/a IE 4 DOM n/a | ||
Read/Write | |||
Used with IE 4 data binding to associate a remote data source column name with the displayed text of the input element label. A DATASRC attribute must also be set for the element. Setting both the dataFld and dataSrc properties to empty strings breaks the binding between element and data source. | |||
Exampledocument.all.myLabel.dataFld = "labelText" | |||
Value Case-sensitive identifier of the data source column. | |||
|
dataFormatAs | NN n/a IE 4 DOM n/a | ||
Read/Write | |||
Used with IE 4 data binding, this property advises the browser whether the source material arriving from the data source is to be treated as plain text or as tagged HTML. | |||
Exampledocument.forms[0].myLabel.dataFormatAs = "HTML" | |||
Value IE 4 recognizes two possible settings: text | HTML. | |||
|
dataSrc | NN n/a IE 4 DOM n/a | ||
Read/Write | |||
Used with IE 4 data binding to specify the name of the remote ODBC data source (such as an Oracle or SQL Server database) to be associated with the element. Setting both the dataFld and dataSrc properties to empty strings breaks the binding between element and data source. | |||
Exampledocument.all.myLabel.dataSrc = "#DBSRC3" | |||
Value Case-sensitive identifier of the data source. | |||
|
htmlFor | NN n/a IE 4 DOM n/a | ||
Read/Write | |||
The element ID of the INPUT element to which the label is associated (the value of the FOR attribute). Binds the LABEL element to a particular INPUT element. | |||
Exampledocument.all.label3.htmlFor = "chkbox3" | |||
Value String. | |||
|